<template>
    <GridView :cols="3" :lineSpace="15" :v-margin="20" v-if="subCategories.list">
        <div class="item" v-for="(item, index) in subCategories.list" :key="index">
            <a :href="item.link">
                <img class="item-img" :src="item.image" alt="">
                <div class="item-text">{{item.title}}</div>
            </a>
        </div>
    </GridView>
</template>
<script>
import GridView from 'components/common/gridView/GridView'
export default {
    name:"TabContentCategory",
    props:['subCategories'],
    // watch: {
    //     subCategories(val){
    //         console.log(val)
    //     }
    // },
    components:{
        GridView
    }
}
</script>
<style scoped>
.panel img {
    width: 100%;
}

.item {
    text-align: center;
    font-size: 12px;
}

.item-img {
    width: 80%;
}

.item-text {
    margin-top: 15px;
}
</style>